package com.tps.feign.fallback;

import com.tps.feign.GoodsFeign;
import org.springframework.stereotype.Component;

/**
 * @author charlee
 * @date 2018/4/30
 */
@Component
public class GoodsFeignFallback implements GoodsFeign {

    @Override
    public String sayHello(String username) {
        return "Sorry! " + username + ". goods-server is dead.";
    }

    @Override
    public void save() {
        System.out.println("调用goods-server的save方法出错");
    }
}
